package com.five.community.mapper;

import com.five.community.bean.Car;
import com.five.community.bean.vo.CarVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
@Mapper
public interface CarMapper {
    //查询所有数据
    List<Car> selectAll() throws Exception;
    //根据id查询车辆
    Car selectById(long id) throws Exception;

    List<CarVo> selectAllCar() throws Exception;

    void insert(Car car) throws Exception;

    void delete(long id) throws Exception;
    List<CarVo> selectByName(String name) throws Exception;

    void update(Car car) throws Exception;

}
